<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MainTemplate.Master" AutoEventWireup="true" CodeBehind="SearchBooks.aspx.cs" Inherits="AlexandriaPressWebsite.MasterPages.AuthorPages.SearchBooks" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainDoc" runat="server">
    <br />
    <asp:Label ID="Label8" runat="server" Text="Search By Title or Genre"></asp:Label>
    <br />
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Search" 
        CssClass="genericButton" />
    <br />
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"  AllowPaging="True" PageSize="5"
               OnPageIndexChanging="searchGridView1_OnPageIndexChanging" PagerSettings-PageButtonCount="10" CssClass="grid">
        <Columns>
            <asp:TemplateField HeaderText="Cover">
                <ItemTemplate>
                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImageLocation") %>' CssClass="smallImage3" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                 <ItemTemplate> 
                    <br />  
                    Title : <asp:Label ID="Label1" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
                    <br />
                    Genre : <asp:Label ID="Label2" runat="server" Text='<%# Eval("Genre") %>'></asp:Label>
                    <br />
                    Date Published : <asp:Label ID="Label3" runat="server" Text='<%# Eval("DatePublished") %>'></asp:Label>
                    <br />
                    Stock : <asp:Label ID="Label4" runat="server" Text='<%# Eval("Stock") %>'></asp:Label>
                    <br />
                    Descrpition : <asp:Label ID="Label5" runat="server" Text='<%# Eval("Description") %>'></asp:Label>
                    <br />
                    Price : <asp:Label ID="Label6" runat="server" Text='<%# Eval("Price") %>'></asp:Label>
                    <br />
                    Date Price was Set : <asp:Label ID="Label7" runat="server" Text='<%# Eval("DatePriceWasSet") %>'></asp:Label>
                    <br />
                    <a href="BookDetails.aspx?id=<%# Eval("BookID") %>">BookDetails>></a>
                    <br />
                    <a href="GetOverAllSale.aspx?id=<%# Eval("BookID") %>">CheckBookSaleStatus>></a>
                    <br />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            Book Not Yet Existing!
        </EmptyDataTemplate>
    </asp:GridView>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="formDoc" runat="server">
</asp:Content>
